package com.smooth.site.sx.pc.job.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.smooth.common.site.common.rsp.ReturnResult;
import com.smooth.site.sx.pc.job.rsp.MobielIndexJobRsp;
import com.smooth.site.sx.pc.job.service.MobileJobService;

@Controller
@RequestMapping(value = "/pc")
public class MobileJobController {
	@Autowired
	MobileJobService mobileJobService;

	@RequestMapping(value = {"p/cat/jobs"},method = {RequestMethod.POST,RequestMethod.GET})
	@ResponseBody
	public ReturnResult catJobs(HttpServletRequest request, HttpServletResponse response) {
		ReturnResult returnResult = new ReturnResult();

		List<MobielIndexJobRsp> mlist = mobileJobService.queryBMap();
		returnResult.setData(mlist);
		
		return returnResult;
	}
}
